

package com.hazelcast.client;

import com.hazelcast.client.config.RoutingMode;
import com.hazelcast.client.config.RoutingStrategy;
import com.hazelcast.core.HazelcastException;
import com.hazelcast.internal.cluster.Versions;

/**
 * An UnsupportedClusterVersionException is thrown when a Hazelcast Client
 * attempts to connect to a cluster with a configuration that is not supported
 * by the cluster version.
 * <p>
 * For example, a client configured with routing mode:
 * {@link RoutingMode#MULTI_MEMBER}
 * and RoutingStrategy
 * {@link RoutingStrategy#PARTITION_GROUPS}
 * will be unable to connect to a cluster that has a minimum cluster version of
 * less than the supported version of {@link Versions#V5_5}.
 */
public class UnsupportedClusterVersionException extends HazelcastException {
    /**
     * Creates an UnsupportedClusterVersionException with the given message.
     *
     * @param message the message for the exception
     */
    public UnsupportedClusterVersionException(String message) {
        super(message);
    }
}
